\hypertarget{class_timer_manager}{\section{Timer\+Manager类 参考}
\label{class_timer_manager}\index{Timer\+Manager@{Timer\+Manager}}
}


定时器管理类  




{\ttfamily \#include $<$Timer.\+h$>$}

类 Timer\+Manager 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_timer_manager}
\end{center}
\end{figure}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
sint32 \hyperlink{class_timer_manager_a551ecad43e1b14a59d4607a319e45d79}{add\+Timer} (\hyperlink{class_timer}{Timer} $\ast$timer)
\begin{DoxyCompactList}\small\item\em 增加定时器 \end{DoxyCompactList}\item 
sint32 \hyperlink{class_timer_manager_a53589574dd8967d703e8bedf0f9888f8}{remove\+Timer} (\hyperlink{class_timer}{Timer} $\ast$timer)
\begin{DoxyCompactList}\small\item\em 移除定时器 \end{DoxyCompactList}\item 
sint32 \hyperlink{class_timer_manager_ad75a33efff8721ef803f7d7f3c64a2c6}{restart\+Timer} (\hyperlink{class_timer}{Timer} $\ast$timer)
\begin{DoxyCompactList}\small\item\em 重新启用定时器 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{静态 Public 成员函数}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{class_timer_manager}{Timer\+Manager} $\ast$ \hyperlink{class_timer_manager_a106e7cf660ed9e56c0de7c964cd34f92}{get\+Instance} ()
\begin{DoxyCompactList}\small\item\em 获取\+Timer\+Manager单例 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
定时器管理类 

\subsection{成员函数说明}
\hypertarget{class_timer_manager_a551ecad43e1b14a59d4607a319e45d79}{\index{Timer\+Manager@{Timer\+Manager}!add\+Timer@{add\+Timer}}
\index{add\+Timer@{add\+Timer}!Timer\+Manager@{Timer\+Manager}}
\subsubsection[{add\+Timer}]{\setlength{\rightskip}{0pt plus 5cm}sint32 Timer\+Manager\+::add\+Timer (
\begin{DoxyParamCaption}
\item[{{\bf Timer} $\ast$}]{timer}
\end{DoxyParamCaption}
)}}\label{class_timer_manager_a551ecad43e1b14a59d4607a319e45d79}


增加定时器 


\begin{DoxyParams}{参数}
{\em timer} & 定时器 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回\+S\+T\+A\+T\+U\+S\+\_\+\+O\+K,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{class_timer_manager_a106e7cf660ed9e56c0de7c964cd34f92}{\index{Timer\+Manager@{Timer\+Manager}!get\+Instance@{get\+Instance}}
\index{get\+Instance@{get\+Instance}!Timer\+Manager@{Timer\+Manager}}
\subsubsection[{get\+Instance}]{\setlength{\rightskip}{0pt plus 5cm}static {\bf Timer\+Manager}$\ast$ Timer\+Manager\+::get\+Instance (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{class_timer_manager_a106e7cf660ed9e56c0de7c964cd34f92}


获取\+Timer\+Manager单例 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Timer\+Manager$\ast$ 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{class_timer_manager_a53589574dd8967d703e8bedf0f9888f8}{\index{Timer\+Manager@{Timer\+Manager}!remove\+Timer@{remove\+Timer}}
\index{remove\+Timer@{remove\+Timer}!Timer\+Manager@{Timer\+Manager}}
\subsubsection[{remove\+Timer}]{\setlength{\rightskip}{0pt plus 5cm}sint32 Timer\+Manager\+::remove\+Timer (
\begin{DoxyParamCaption}
\item[{{\bf Timer} $\ast$}]{timer}
\end{DoxyParamCaption}
)}}\label{class_timer_manager_a53589574dd8967d703e8bedf0f9888f8}


移除定时器 


\begin{DoxyParams}{参数}
{\em timer} & 定时器 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回\+S\+T\+A\+T\+U\+S\+\_\+\+O\+K,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{class_timer_manager_ad75a33efff8721ef803f7d7f3c64a2c6}{\index{Timer\+Manager@{Timer\+Manager}!restart\+Timer@{restart\+Timer}}
\index{restart\+Timer@{restart\+Timer}!Timer\+Manager@{Timer\+Manager}}
\subsubsection[{restart\+Timer}]{\setlength{\rightskip}{0pt plus 5cm}sint32 Timer\+Manager\+::restart\+Timer (
\begin{DoxyParamCaption}
\item[{{\bf Timer} $\ast$}]{timer}
\end{DoxyParamCaption}
)}}\label{class_timer_manager_ad75a33efff8721ef803f7d7f3c64a2c6}


重新启用定时器 


\begin{DoxyParams}{参数}
{\em timer} & 定时器 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回\+S\+T\+A\+T\+U\+S\+\_\+\+O\+K,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_timer_8h}{Timer.\+h}\item 
libemb/src/Timer.\+cpp\end{DoxyCompactItemize}
